#ifndef CEDIT_H_
#define CEDIT_H_

#include "cdefaultfocusdynamicguiobject.h"
#include "cdefaultonadddynamicguiobject.h"
#include "../event/ckeyidentifications.h"

/**
 * CEdit - class representing edit box
 * @author Michal Rost
 * @date 08.04.2008
 */
class CEdit : public CDefaultFocusDynamicGuiObject,
  public CDefaultOnAddDynamicGuiObject {
public:
  CEdit(string text);
  string getText() const;
  void setText(string text);
  static string getClassName() {
    return "CEdit";
  }
protected:
  string text;
  void keyDown(unsigned short keyId, unsigned short unicode);
  void drawSelf(CGuiRenderer* rendererPtr);
};

#endif
